<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    function getSum(){
        var sum=0;
        for(i=0;i<100;i++){
            sum+=i;
        }
        console.log(sum);
        
    }
    getSum();

    var sum1=function(){
        var sum1=0;
        for(i=0;i<=200;i++){
            sum1+=i;
        }
        console.log(sum1);
        
    }
    sum1()
</script>